import URL from '@/config/url'
import utils from '@/utils/utils'

export default {
	//tabs分类列表
	getCategory(params = {}) {
		let data = {
			
		}
		return utils.uniRequest({ url: URL.BASE+ '/shop/article/material', data })
	},
	//文章分页列表
	getArticleList(params = {}) {
		let data = {
			pagesize:params.pagesize,
			page:params.page,
			type_id:params.type_id,
			group_id:3,
			keyword:params.keyword
		}
		return utils.uniRequest({ url: URL.BASE+ '/shop/article/paginate', data })
	},
	//文章详情
	getDetaile(params = {}) {
		let data = {
			group_id:3,
			id:params.id,
		}
		return utils.uniRequest({ url: URL.BASE+ '/shop/article/detail', data })
	},
}